Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Replace usage of env variables with application config in app state #178

Merged
merged 10 commits into from
Dec 2, 2024

Conversation

roman-romanov-o
Copy link
Collaborator

The current approach of using env variables makes testing much harder, since variables are in global scope.

Replace it with app_config object, that's passed during application init, and could be modified for testing purposes

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Nov 26, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-178.nightly-test.deltixhub.io
E2E tests status: success

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Nov 27, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-178.nightly-test.deltixhub.io
E2E tests status: success

tests/conftest.py Outdated Show resolved Hide resolved
@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Nov 29, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-178.nightly-test.deltixhub.io
E2E tests status: success

@roman-romanov-o
Copy link
Collaborator Author

roman-romanov-o commented Dec 2, 2024

/deploy-review

Environment URL: https://chat-ai-dial-adapter-openai-pr-178.nightly-test.deltixhub.io
E2E tests status: success

@roman-romanov-o roman-romanov-o merged commit 33f02be into development Dec 2, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants